Skip to content

Simplify agents and teams cards#1199

Open
klopez4212 wants to merge 1 commit into
mainfrom
kennylopez-agents-page-cards
Open

Simplify agents and teams cards#1199
klopez4212 wants to merge 1 commit into
mainfrom
kennylopez-agents-page-cards

Conversation

@klopez4212

Copy link
Copy Markdown
Contributor

Summary

  • Simplifies the Agents page into focused identity-card grids for agents and teams.
  • Uses simple circular avatars for both agent cards and team member previews.
  • Leaves existing page-level management actions intact so this can land independently.

Notes

  • Intentionally excludes the experimental provider collage, team avatar clusters, and Goose media bundle.

Validation

  • cd desktop && pnpm check
  • cd desktop && pnpm typecheck
  • git diff --check

@klopez4212 klopez4212 force-pushed the kennylopez-agents-page-cards branch from 9b87d11 to 60822a4 Compare June 23, 2026 16:15
@klopez4212 klopez4212 marked this pull request as ready for review June 23, 2026 16:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 60822a4471

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +677 to +679
<DropdownMenuItem onClick={() => onOpenLogs(agent.pubkey)}>
<FileText className="h-4 w-4" />
View logs

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore a visible log panel for View logs

For local agents this menu item still calls onOpenLogs, which only updates logAgentPubkey in AgentsView. In this new card layout, UnifiedAgentsSection no longer renders ManagedAgentLogPanel/managed-agent-log-row or consumes logContent, logError, logLoading, or selectedLogAgentPubkey; the only remaining renderer is ManagedAgentRow, which is no longer mounted here. As a result, choosing View logs, or creating an agent which selects its logs, silently changes state with no logs visible.

Useful? React with 👍 / 👎.

@wesbillman wesbillman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for simplifying the card layout. I found a blocker in the refactor: the local-agent View logs action is still present, but the new card UI no longer renders the selected log panel. I also noticed team descriptions are still passed into the card component but are no longer surfaced.

</DropdownMenuItem>

{agent.backend.type === "local" ? (
<DropdownMenuItem onClick={() => onOpenLogs(agent.pubkey)}>

@wesbillman wesbillman Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This action now appears to be a no-op. It still sets the selected log pubkey via onOpenLogs(agent.pubkey), and AgentsView still passes logContent/logError/logLoading/selectedLogAgentPubkey into UnifiedAgentsSection, but the new card layout never renders ManagedAgentLogPanel (or any equivalent) based on that selected state. Before this refactor, ManagedAgentRow expanded the inline log panel. Please either restore a working log viewer for selected local-agent cards or remove/replace this menu item with a working pattern.

actions: ReactNode;
children?: ReactNode;
dataTestId: string;
description?: string | null;

@wesbillman wesbillman Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamsSection passes description={team.description} into this card, and the prop is declared here, but the component never destructures or renders it. The previous team card exposed descriptions through an info tooltip, so this loses user-visible team metadata. Please restore a way to view the description (or intentionally remove the prop/call site if descriptions are no longer meant to show here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants